package com.glodon.paas.document.service.util;

/**
 * utility class for determining the names of a storage object
 * 
 * @author guojf
 */
public class StorageKeyNamingPolicy {

    public final static String SEED_ROOT = "seed";

    public static String getKeyForSeed(String fileId, int revisionNum) {
        return SEED_ROOT + "/" + fileId + "/" + revisionNum;
    }

    public static String getPartKey(String fileId, int revisionNum, int partNum) {
        return SEED_ROOT + "/" + fileId + "/Revision_" + revisionNum + "/Part_" + partNum;
    }
}
